/**
 * This file is part of the CAKIS project.
 * 
 * Copyright (c) 2009-2010 - Florian Arndt, Christian Kerl
 * 
 * @license GNU Lesser General Public License v3 <http://www.opensource.org/licenses/lgpl-3.0.html>
 * @since   14.05.2010
 * @version SVN: $Id: RecipeService.java 157 2010-05-19 14:30:17Z christian-kerl@web.de $
 */
package org.cakis.server.service;

import java.net.URL;

import org.cakis.server.model.Recipe;

/**
 * RecipeService
 *
 * @author Christian Kerl
 */
public interface RecipeService {

    @javax.ejb.Local
    public static interface Local extends RecipeService {
        /**
         * 
         * 
         * @param url
         * @param addMissingStockUnitAndProductType
         * 
         * @return
         * 
         * @throws RecipeNotFoundException
         * @throws ProductNotFoundException
         * @throws StockUnitNotFoundException
         */
        Recipe importRecipe(URL url, boolean addMissingStockUnitAndProductType) throws RecipeNotFoundException, ProductNotFoundException, StockUnitNotFoundException;


    }

    @javax.ejb.Remote
    public static interface Remote extends RecipeService {
        public static final String RecipeUuidPrefix = "CakisRecipeUuid:";

        /**
         * 
         * 
         * @param uuid
         */
        void openRecipeInServerSession(String uuid);
    }
}
